home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / graphics / gnuplot-faq < prev    next >
Internet Message Format  |  1994-04-10  |  38KB

  1. Path: bloom-beacon.mit.edu!hookup!usc!howland.reston.ans.net!EU.net!Germany.EU.net!netmbx.de!zib-berlin.de!news.uni-ulm.de!rz.uni-karlsruhe.de!fg70.rz.uni-karlsruhe.de!ig25
  2. From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
  3. Newsgroups: comp.graphics.gnuplot,comp.answers,news.answers
  4. Subject: comp.graphics.gnuplot FAQ (Frequent Answered Questions)
  5. Supersedes: <comp-graphics-gnuplot-faq_764787635@fg70.rz.uni-karlsruhe.de>
  6. Followup-To: comp.graphics.gnuplot
  7. Date: 11 Apr 1994 02:23:16 GMT
  8. Organization: University of Karlsruhe, Germany
  9. Lines: 827
  10. Approved: news-answers-request@MIT.Edu
  11. Expires: 9 May 1994 02:23:01 GMT
  12. Message-ID: <comp-graphics-gnuplot-faq_766030981@fg70.rz.uni-karlsruhe.de>
  13. Reply-To: ig25@rz.uni-karlsruhe.de
  14. NNTP-Posting-Host: fg70.rz.uni-karlsruhe.de
  15. Mime-Version: 1.0
  16. Content-Type: text/plain; charset=iso-8859-1
  17. Content-Transfer-Encoding: 8bit
  18. Summary: This is the FAQ (Frequently Answered Questions) list of the
  19.          comp.graphics.gnuplot newsgroup, which discusses the
  20.          gnuplot program for plotting 2D - and 3D - graphs.
  21. Keywords: computer graphics, gnuplot
  22. Xref: bloom-beacon.mit.edu comp.graphics.gnuplot:3522 comp.answers:4843 news.answers:17887
  23.  
  24.  
  25. Archive-name: graphics/gnuplot-faq
  26. Version: $Header: gnuplot-faq.html,v 1.11 94/04/05 00:45:18 ig25 Exp $
  27. Posting-frequency: every 14 days
  28. X-Url: http://fg20.rz.uni-karlsruhe.de/~ig25/gnuplot-faq.html
  29.  
  30.    comp.graphics.gnuplot
  31.    
  32.             COMP.GRAPHICS.GNUPLOT FAQ (FREQUENT ANSWERED QUESTIONS)
  33.                                        
  34.    This is the FAQ (Frequently Answered Questions) list of the
  35.    comp.graphics.gnuplot newsgroup, which discusses the gnuplot program
  36.    for plotting 2D - and 3D - graphs.
  37.    
  38.    Most of the information in this document came from public discussion
  39.    on comp.graphics.gnuplot; quotations are believed to be in the public
  40.    domain.
  41.    
  42.    Here's a list of the questions. If you are looking for the answer for
  43.    a specific question, look for the string Qx.x: at the beginning of a
  44.    line, with x.x being the question number. Sections in this FAQ are
  45.      * 0. Meta - Questions
  46.      * 1. General Information
  47.      * 2. Setting it up
  48.      * 3. Working with it
  49.      * 4. Wanted features
  50.      * 5. Miscellaneous
  51.      * 6. Making life easier
  52.      * 7. Known problems
  53.      * 8. Credits
  54.        
  55.    
  56.      _________________________________________________________________
  57.    
  58. Questions:
  59.  
  60.   SECTION 0: META - QUESTIONS
  61.      * Q0.1: Where do I get this document?
  62.      * Q0.2: Where do I send comments about this document?
  63.        
  64.   SECTION 1: GENERAL INFORMATION
  65.      * Q1.1: What is gnuplot?
  66.      * Q1.2: How did it come about and why is it called gnuplot?
  67.      * Q1.3: Does gnuplot have anything to do with the FSF and the GNU
  68.        project?
  69.      * Q1.4: What does gnuplot offer?
  70.      * Q1.5: Is gnuplot suitable for batch processing?
  71.      * Q1.6: Can I run gnuplot on my computer?
  72.        
  73.   SECTION 2: SETTING IT UP
  74.      * Q2.1: What is the current version of gnuplot?
  75.      * Q2.2: Where can I get gnuplot?
  76.      * Q2.3: How do I get gnuplot to compile on my system?
  77.      * Q2.4: What documentation is there, and how do I get it?
  78.        
  79.   SECTION 3: WORKING WITH IT
  80.      * Q3.1: How do I get help?
  81.      * Q3.2: How do I print out my graphs?
  82.      * Q3.3: How do I include my graphs in <word processor>?
  83.        
  84.   SECTION 4: WANTED FEATURES
  85.      * Q4.1: Does gnuplot have hidden line removal?
  86.      * Q4.2: Does gnuplot support bar-charts/histograms/boxes?
  87.      * Q4.3: Does gnuplot support multiple y-axes on a single plot?
  88.      * Q4.4: Can I put multiple plots on a single page?
  89.      * Q4.5: Can I put both data files and commands into a single file?
  90.      * Q4.6: Can I put Greek letters and super/subscripts into my labels?
  91.      * Q4.7 Can I do 1:1 scaling of axes?
  92.      * Q4.8: Can I put tic marks for x and y axes into 3d plots?
  93.      * Q4.9: Does gnuplot support a driver for ?
  94.      * Q4.10: Can I put different text sizes into my plots?
  95.        
  96.   SECTION 5: MISCELLANEOUS
  97.      * Q5.1: I've found a bug, what do I do?
  98.      * Q5.2: Can I use gnuplot routines for my own programs?
  99.      * Q5.3: What extensions have people made to gnuplot? Where can I get
  100.        them?
  101.      * Q5.4: Can I do heavy - duty data processing with gnuplot?
  102.      * Q5.5: I have ported gnuplot to another system, or patched it. What
  103.        do I do?
  104.        
  105.   SECTION 6: MAKING LIFE EASIER
  106.      * Q6.1: How do I plot two functions in non - overlapping regions?
  107.      * Q6.2: How do I run my data through a filter before plotting?
  108.      * Q6.3: How do I make it easier to use gnuplot with LaTeX?
  109.      * Q6.4: How do I save and restore my settings?
  110.      * Q6.5: How do I plot lines (not grids) using splot?
  111.      * Q6.6: How do I plot a function f(x,y) which is bounded by other
  112.        functions in the x-y plain?
  113.      * Q6.7: How do I get rid of <feature in a plot>?
  114.        
  115.   SECTION 7: KNOWN PROBLEMS
  116.      * Q7.1: Gnuplot is not plotting any points under X11! How come?
  117.      * Q7.2: My isoline data generated by a Fortran program is not
  118.        handled correctly. What can I do?
  119.      * Q7.3: Why does gnuplot ignore my very small numbers?
  120.      * Q7.4: Gnuplot is plotting nothing when run via gnuplot <filename>!
  121.        What can I do?
  122.      * Q7.5: My formulas are giving me nonsense results! What's going on?
  123.        
  124.   SECTION 8: CREDITS
  125.   
  126.    
  127.      _________________________________________________________________
  128.    
  129. Questions and Answers:
  130.  
  131.   SECTION 0: META - QUESTIONS.
  132.   
  133.     Q0.1: Where do I get this document?
  134.           This document is posted about once every two weeks to the
  135.           newsgroups comp.graphics.gnuplot, comp.answers and
  136.           news.answers. Like many other FAQ's, its newest (plaintext)
  137.           version is available via anonymous ftp from
  138.           ftp://rtfm.mit.edu/pub/usenet/news.answers/graphics/gnuplot-faq
  139.           .
  140.           
  141.           If you have access to the WWW, you can get the newest version
  142.           of this document from
  143.           http://fg20.rz.uni-karlsruhe.de/~ig25/gnuplot-faq.html
  144.           
  145.    Q0.2: Where do I send comments about this document?
  146.           Send comments, suggestions etc. via e-mail to Thomas Koenig ,
  147.           ig25@rz.uni-karlsruhe.de or ig25@dkauni2.bitnet.
  148.           
  149.    
  150.      _________________________________________________________________
  151.    
  152.   SECTION 1: GENERAL INFORMATION
  153.   
  154.     Q1.1: What is gnuplot?
  155.           Gnuplot is a command-driven interactive function plotting
  156.           program. It can be used to plot functions and data points in
  157.           both two- and three- dimensional plots in many different
  158.           formats, and will accommodate many of the needs of today's
  159.           scientists for graphic data representation. Gnuplot is
  160.           copyrighted, but freely distributable; you don't have to pay
  161.           for it.
  162.           
  163.    Q1.2: How did it come about and why is it called gnuplot?
  164.           The authors of gnuplot are:
  165.           
  166.           Thomas Williams, Colin Kelley, Russell Lang, Dave Kotz, John
  167.           Campbell, Gershon Elber, Alexander Woo and many others.
  168.           
  169.           The following quote comes from Thomas Williams:
  170.           
  171.      I was taking a differential equation class and Colin was taking
  172.      Electromagnetics, we both thought it'd be helpful to visualize the
  173.      mathematics behind them. We were both working as sys admin for an EE
  174.      VLSI lab, so we had the graphics terminals and the time to do some
  175.      coding. The posting was better received than we expected, and
  176.      prompted us to add some, albeit lame, support for file data.
  177.      
  178.      Any reference to GNUplot is incorrect. The real name of the program
  179.      is "gnuplot". You see people use "Gnuplot" quite a bit because many
  180.      of us have an aversion to starting a sentence with a lower case
  181.      letter, even in the case of proper nouns and titles. Gnuplot is not
  182.      related to the GNU project or the FSF in any but the most peripheral
  183.      sense. Our software was designed completely independently and the
  184.      name "gnuplot" was actually a compromise. I wanted to call it
  185.      "llamaplot" and Colin wanted to call it "nplot." We agreed that
  186.      "newplot" was acceptable but, we then discovered that there was an
  187.      absolutely ghastly pascal program of that name that the Computer
  188.      Science Dept. occasionally used. I decided that "gnuplot" would make
  189.      a nice pun and after a fashion Colin agreed.
  190.      
  191.    Q1.3: Does gnuplot have anything to do with the FSF and the GNU
  192.           project?
  193.           Gnuplot is neither written nor maintained by the FSF. It is not
  194.           covered by the General Public License, either.
  195.           
  196.           However, the FSF has decided to distribute gnuplot as part of
  197.           the GNU system, because it is useful, redistributable software.
  198.           
  199.    Q1.4: What does gnuplot offer?
  200.           
  201.           + Plotting of two - dimensional functions and data points in
  202.             many different styles (points, lines, error bars)
  203.           + plotting of three - dimensional data points and surfaces in
  204.             many different styles (contour plot, mesh).
  205.           + support for complex arithmetic
  206.           + self - defined functions
  207.           + support for a large number of operating systems, graphics
  208.             file formats and devices
  209.           + extensive on-line help
  210.           + labels for title, axes, data points
  211.           + command line editing and history on most platforms
  212.             
  213.    Q1.5: Is gnuplot suitable for batch processing?
  214.           Yes. You can read in files from the command line, or you can
  215.           redirect your standard input to read from a file. Both data and
  216.           command files can be generated automatically, from data
  217.           acquisition programs or whatever else you use.
  218.           
  219.    Q1.6: Can I run gnuplot on my computer?
  220.           Gnuplot is available for a number of platforms. These are: Unix
  221.           (X11 and NeXTSTEP), VAX/VMS, OS/2, MS-DOS, Amiga, MS-Windows,
  222.           OS-9/68k, Atari ST and the Macintosh. Modifications for NEC
  223.           PC-9801 are said to exist (where?).
  224.           
  225.    
  226.      _________________________________________________________________
  227.    
  228.   SECTION 2: SETTING IT UP
  229.   
  230.     Q2.1: What is the current version of gnuplot?
  231.           The current version of gnuplot is 3.5, which is a bugfix
  232.           release over 3.4.
  233.           
  234.    Q2.2: Where can I get gnuplot?
  235.           [This information may be dated, due to the release of gnuplot
  236.           3.5. Please report any inaccuracies, if you find them. Ed.]
  237.           
  238.           All of the later addresses refer to ftp sites. Please note that
  239.           it is preferable for you to use the symbolic name, rather than
  240.           the IP address given in brackets, because that address is much
  241.           more subject to change.
  242.           
  243.           The official distribution site for the gnuplot source is
  244.           ftp.dartmouth.edu [129.170.16.4], the file is called
  245.           /pub/gnuplot/gnuplot.3.5.tar.Z. Official mirrors of that
  246.           distribution are (for Australia) monu1.cc.monash.edu.au
  247.           [130.194.1.101] and (for Europe) irisa.irisa.fr
  248.           [131.254.254.2]. You can also get it from your friendly
  249.           neighbourhood comp.sources.misc archive.
  250.           
  251.           MS-DOS and MS-Windows binaries are available from
  252.           
  253.           + oak.oakland.edu (North America) [141.210.10.117] as
  254.             pub/msdos/plot/gpt35*.zip,
  255.           + garbo.uwasa.fi (Europe) [128.214.87.1] as /pc/plot/gpt35*.zip
  256.             and
  257.           + archie.au (Australia) [139.130.4.6] as
  258.             micros/pc/oak/plot/gpt35*.zip.
  259.             
  260.    The files are: gpt35doc.zip, gpt35exe.zip, gpt35src.zip and
  261.           gpt35win.zip.
  262.           
  263.           There is a special MS-DOS version for 386 or better processors;
  264.           it is available from the official gnuplot sites as DOS34.zip.
  265.           
  266.           OS/2 2.x binaries are at ftp-os2.nmsu.edu [128.123.35.151], in
  267.           /os2/2.x/unix/gnuplt35.zip .
  268.           
  269.           Amiga sources and binaries are available from ftp.wustl.edu
  270.           [128.252.135.4] as /pub/aminet/util/gnu/gnuplot-3.5.lha; there
  271.           are numerous mirrors of this distribution, for example
  272.           ftp.uni-kl.de, oes.orst.edu or ftp.luth.se.
  273.           
  274.           The NeXTSTEP front end can be found at sonata.cc.purdue.edu and
  275.           cs.orst.edu.
  276.           
  277.           A version for OS-9/68K can be found at cabrales.cs.wisc.edu
  278.           [128.105.36.20] as /pub/OSK/GRAPHICS/gnuplot32x.tar.Z; it
  279.           includes both X-Windows and non - X-windows versions.
  280.           
  281.           A version of gnuplot for the Mac can reportedly be found on
  282.           archive.umich.edu and sumex-aim.stanford.edu, directories
  283.           unknown.
  284.           
  285.           People without ftp access can use an ftp-mail server; send a
  286.           message saying 'help' to bitftp@pucc.bitnet (for BITNET only)
  287.           or to ftpmail@ftp.dartmouth.edu.
  288.           
  289.           For a uuencoded copy of the the gnuplot sources (compressed tar
  290.           file), send this as the body of a message to
  291.           ftpmail@ftp.dartmouth.edu:
  292.           
  293.  
  294.         open
  295.         cd pub/gnuplot
  296.         mode binary
  297.         get gnuplot3.5.tar.Z
  298.         quit
  299.  
  300.    If you have some problem, you might need to stick
  301.           
  302.  
  303.         reply-to  <your-email-address-here>
  304.  
  305.    before all the above.
  306.           
  307.           It is a good idea to look for a nearby ftp site when
  308.           downloading things. You can use archie for this. See if an
  309.           archie client is installed at your system (by simply typing
  310.           archie at the command prompt), or send mail to archie@sura.net
  311.           with the word 'help' in both the subject line and the body of
  312.           the mail. However, be aware that the version you find at a near
  313.           ftp site may well be out of date; check the last modification
  314.           date and the number of bytes against the newest release at one
  315.           of the official servers.
  316.           
  317.    Q2.3: How do I get gnuplot to compile on my system?
  318.           As you would any other installation. Read the files README and
  319.           README.Install, edit the Makefile according to taste, and run
  320.           make or whatever is suitable for your operating system.
  321.           
  322.           If you get a complaint about a missing file libplot.a or
  323.           something similar when building gnuplot for X11, remove
  324.           -DUNIXPLOT from the TERMFLAGS= line, remove -lplot from the
  325.           DTBS= line and run again. If you are making X11 on a sun, type
  326.           'make x11_sun'.
  327.           
  328.    Q2.4: What documentation is there, and how do I get it?
  329.           The documentation is included in the source distribution. Look
  330.           at the docs subdirectory, where you'll find
  331.           
  332.           + a Unix man page, which says how to start gnuplot
  333.           + a help file, which also can be printed as a manual
  334.           + a tutorial on using gnuplot with LaTeX
  335.           + a quick reference summary sheet for TeX only
  336.             
  337.    PostScript copies of the documentation can be ftp'd from
  338.           ftp.dartmouth.edu, in pub/gnuplot, as manual.ps.Z and
  339.           tutorial.ps.Z
  340.           
  341.           A Chinese translation of the manual can be found on
  342.           ftp://servers.nctu.edu.tw/misc/environment/NCTU_EV/classnote/gn
  343.           uplot.ps.gz .
  344.           
  345.    
  346.      _________________________________________________________________
  347.    
  348.   SECTION 3: WORKING WITH IT
  349.   
  350.     Q3.1: How do I get help?
  351.           Give the 'help' command at the initial prompt. After that, keep
  352.           looking through the keywords. Good starting points are 'plot'
  353.           and 'set'.
  354.           
  355.           Read the manual, if you have it.
  356.           
  357.           Look through the demo subdirectory; it should give you some
  358.           ideas.
  359.           
  360.           Ask your colleagues, the system administrator or the person who
  361.           set up gnuplot.
  362.           
  363.           Post a question to comp.graphics.gnuplot or send mail to the
  364.           gatewayed mailing list info-gnuplot@dartmouth.edu. If you want
  365.           to subscribe to the mailing list, send mail to
  366.           info-gnuplot-request@dartmouth.edu, but please don't do this if
  367.           you can get comp.graphics.gnuplot directly. If you pose a
  368.           question there, it is considered good form to solicit e-mail
  369.           replies and post a summary.
  370.           
  371.    Q3.2: How do I print out my graphs?
  372.           The kind of output produced is determined by the 'set terminal'
  373.           command; for example, 'set terminal postscript' will produce
  374.           the graph in PostScript format. Output can be redirected using
  375.           the 'set output' command.
  376.           
  377.           As an example, the following prints out a graph of sin(x) on a
  378.           Unix machine running X - Windows.
  379.           
  380.  
  381.         gnuplot> plot [-6:6] sin(x)
  382.         gnuplot> set terminal postscript
  383.         Terminal type set to 'postscript'
  384.         Options are 'landscape monochrome "Courier" 14'
  385.         gnuplot> set output "sin.ps"
  386.         gnuplot> replot
  387.         gnuplot> set output              # set output back to default
  388.         gnuplot> set terminal x11        # ditto for terminal type
  389.         gnuplot> ! lp -ops sin.ps        # print ps - File (site dependent)
  390.         request id is lprint-3433 (standard input)
  391.         lp: printed file sin.ps on fg20.rz.uni-karlsruhe.de (5068 Byte)
  392.         !
  393.         gnuplot>
  394.  
  395.    Q3.3: How do I include my graphs in <word processor>?
  396.           Basically, you save your plot to a file in a format your word
  397.           processor can understand (using "set term" and "set output",
  398.           see above), and then you read in the plot from your word
  399.           processor.
  400.           
  401.           Details depend on the kind of word processor you use; use "set
  402.           term" to get a list of available file formats.
  403.           
  404.           Many word processors can use Encapsulated PostScript for
  405.           graphs. This can be generated by the "set terminal postscript
  406.           eps" command. Most MS-DOS word processors understand HPGL
  407.           (terminal type hpgl).
  408.           
  409.           With TeX, it depends on what you use to print your dvi files.
  410.           If you use dvips or dvi2ps, you can use Encapsulated
  411.           PostScript. For emTeX (popular for MS-DOS), you can use emTeX,
  412.           otherwise use the LaTeX terminal type, which generates a
  413.           picture environment.
  414.           
  415.           If nothing else helps, try using the pgm or ppm format and
  416.           converting it to a bitmap format your favourite word processor
  417.           can understand. An invaluable tool for this is Jef Poskanzer's
  418.           PBMPLUS package.
  419.           
  420.           The PBMPLUS package is available in the contrib distribution
  421.           for Xwindows. The original site for this is ftp.x.org:/contrib,
  422.           there are many mirrors, e.g.
  423.           ftp.th-darmstadt.de:/pub/X11/contrib or
  424.           sunsite.unc.edu:/pub/X11/contrib.
  425.           
  426.           The most recent release of pbm by the author is dated December
  427.           91 and is called pbmplus10dec91.tar.Z
  428.           
  429.           There is new version including lots of patches from the net
  430.           that is not maintained by the author called netpbm, with the
  431.           newest version called netpbm-7dec1993.tar.gz.
  432.           
  433.           Check archie (see Q2.2 ) for an archive site near you.
  434.           
  435.    
  436.      _________________________________________________________________
  437.    
  438.   SECTION 4: WANTED FEATURES
  439.   
  440.     Q4.1: Does gnuplot have hidden line removal?
  441.           Version 3.5 supports hidden line removal on all platforms
  442.           except MS-DOS; use the command
  443.           
  444.  
  445.         set hidden3d
  446.  
  447.    If someone can solve the 64K DGROUP memory problem, gnuplot would
  448.           support hidden line removal on MS-DOS as well. Version 3.2
  449.           supports limited hidden line removal.
  450.           
  451.    Q4.2: Does gnuplot support bar-charts/histograms/boxes?
  452.           As of version 3.4, it does.
  453.           
  454.    Q4.3: Does gnuplot support multiple y-axes on a single plot?
  455.           Yes, with two unofficial mods, multiplot.shar and borders.shar.
  456.           Send mail to woo@playfair.stanford.edu.
  457.           
  458.    Q4.4: Can I put multiple plots on a single page?
  459.           Yes, with the multiplot.shar mod. If you are using PostScript
  460.           output, check out mpage, which can be ftp'd from
  461.           ftp.eng.umd.edu:pub/misc/mpage-2.tar.Z
  462.           
  463.    Q4.5: Can I put both data files and commands into a single file?
  464.           This is a feature which will probably be in gnuplot 3.6, which
  465.           is in early development. Ask for the mixed.shar patch from
  466.           woo@playfair.stanford.edu.
  467.           
  468.    Q4.6: Can I put Greek letters and super/subscripts into my labels?
  469.           You might try using the LaTeX terminal type and putting text
  470.           like \alpha_{3} into it.
  471.           
  472.           If you use PostScript output, you might find something in the
  473.           Green subdirectory of the gpcontrb file (see Q5.3).
  474.           
  475.           David Denholm has written a PostScript terminal which allows
  476.           for super/and subscripts, such as a^x or { Symbol a }. Ftp to
  477.           sotona.phys.soton.ac.uk[152.78.192.42] and get divpost34.trm.
  478.           To install it, copy it over ~gnuplot/term/post.trm and
  479.           recompile. A never version is mattpost.trm, rewritten by Matt
  480.           Heffron.
  481.           
  482.    Q4.7: Can I do 1:1 scaling of axes?
  483.           Not easily.
  484.           
  485.    Q4.8: Can I put tic marks for x and y axes into 3d plots?
  486.           In version 3.5, you can.
  487.           
  488.    Q4.9: Does gnuplot support a driver for ?
  489.           To see a list of the available graphic drivers for your
  490.           installation of gnuplot, type "set term".
  491.           
  492.           Some graphics drivers are included in the normal distribution,
  493.           but are uncommented by default. If you want to use them, you'll
  494.           have to change ~gnuplot/term.h.
  495.           
  496.    Q4.10: Can I put different text sizes into my plots?
  497.           If you use PostScript output, you can use Dave Denholm's and
  498.           Matt Heffron's updated PostScript driver,
  499.           /sotona.phys.soton.ac.uk:/mattpost.trm (see also Q4.6 ).
  500.           
  501.    
  502.      _________________________________________________________________
  503.    
  504.   SECTION 5: MISCELLANEOUS
  505.   
  506.     Q5.1: I've found a bug, what do I do?
  507.           First, try to see whether it actually is a bug, or whether it
  508.           is a feature which may be turned off by some obscure set -
  509.           command.
  510.           
  511.           Next, see wether you have an old version of gnuplot; if you do,
  512.           chances are the bug has been fixed in a newer release.
  513.           
  514.           If, after checking these things, you still are convinced that
  515.           there is a bug, proceed as follows. If you have a fairly
  516.           general sort of bug report, posting to comp.graphics.gnuplot is
  517.           probably the way to go. If you have investigated a problem in
  518.           detail, especially if you have a context diff that fixes the
  519.           problem, please e-email a report to bug-gnuplot@dartmouth.edu.
  520.           The bug-gnuplot list is for reporting and collecting bug fixes,
  521.           the comp.graphics.gnuplot newsgroup will be more help for
  522.           finding work arounds or actually solving gnuplot related
  523.           problems. If you do send in a bug report, be sure and include
  524.           the version of gnuplot (including patchlevel), terminal driver,
  525.           operating system, an exact description of the bug and input
  526.           which can reproduce the bug. Also, any context diffs should be
  527.           referenced against the latest official version of gnuplot if at
  528.           all possible.
  529.           
  530.    Q5.2: Can I use gnuplot routines for my own programs?
  531.           Yes. John Campbell has written gplotlib, a version of gnuplot
  532.           as C subroutines callable from a C program. This is available
  533.           as gplotlib.tar.Z on the machine ftp.nau.edu in the directory
  534.           /pub/gplotlib.tar.Z. This library has been updated to be
  535.           compatible with version 3.5. Ask woo@playfair.stanford.edu.
  536.           
  537.    Q5.3: What extensions have people made to gnuplot? Where can I get
  538.           them?
  539.           [A new gpcontrb is under construction. A. Woo] 
  540.           
  541.           Extensions have been put into the file gpcontrb.tar.Z, which is
  542.           available with the 3.5 release, from the same places you can
  543.           download the main distribution from.
  544.           
  545.           Note that it has a size of 3.5 megabytes.
  546.           
  547.           It contains the following subdirectories:
  548.           
  549.           bigler subdirectory:
  550.           From: bigler@cicg-calcul.grenet.fr
  551.           Subject: Multiple plots from a Fortran program
  552.           budelsky subdirectory:
  553.           From: budelsky@haegar.ikp.uni-koeln.de
  554.           Subject: This is the information file for porting gnuplot 3.2
  555.           to OS-9/68000
  556.           byrne subdirectory:
  557.           From: "Margaret R. Byrne"
  558.           Subject: congp3d3 preprocessor to draw contour plots on
  559.           irregular regions.
  560.           clark subdirectory:
  561.           From: Michael Clark
  562.           Subject: data filtering: adds point_skip & point_offs
  563.           clift subdirectory:
  564.           From: ssclift@neumann.uwaterloo.ca (Simon Clift)
  565.           Subject: Re: Running gnuplot from Fortran, (and C)
  566.           green subdirectory:
  567.           From: Roque Donizete de Oliveira
  568.           Subject: PostScript Greek symbols in gnuplot, new prologue
  569.           hanna subdirectory:
  570.           From: gregor@kafka.saic.com (gregg hanna)
  571.           Subject: x11-library mode, gnulib_x11.[c,h],
  572.           xlibtest.c,makefile.xlib
  573.           klosowski subdirectory:
  574.           From: Carsten Steger
  575.           Subject: New file "klein.dat"
  576.           From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
  577.           Subject: calling gnuplot from Fortran
  578.           kocaturk subdirectory:
  579.           From: mustafa@seas.smu.edu (Mustafa Kocaturk)
  580.           Subject: Histograms in gnuplot
  581.           richardson subdirectory:
  582.           From: amr@chiton.ucsd.edu (Tony Richardson)
  583.           Subject: Programmatic control of gnuplot from Unix
  584.           rosendorf subdirectory:
  585.           From: prf@jprix.che.wisc.edu
  586.           Subject: Multiple plots on a page
  587.           vanzandt subdirectory:
  588.           From: James R. Van Zandt
  589.           Subject: Spline generating program
  590.           white subdirectory:
  591.           From: gwhite@bionet.bio.dfo.ca
  592.           Subject: gnuplot 3.2 for Titan 3000
  593.           woo subdirectory:
  594.           From: "Alex Woo"
  595.           Subject: two additional title lines and fixes to errorbar style
  596.           
  597.           yamamoto subdirectory:
  598.           From: "NOBORU YAMAMOTO "
  599.           Subject: Re: gnuplot on Apple Macintosh, "diff -c" of version
  600.           3.0
  601.           (now includes binaries)
  602.           castro subdirectory:
  603.           From: maurice@bruce.cs.monash.edu.au (Maurice Castro)
  604.           Subject: Controlling gnuplot from another Windows program
  605.           grammes subdirectory:
  606.           From: ph12hucg@rz.uni-sb.de (Carsten Grammes)
  607.           Subject: Nonlinear least squares fit mechanism
  608.           henke subdirectory:
  609.           From: mgr@asgard.bo.open.de (Lars Hanke)
  610.           Subject: Re: Changes to gnuplot 3.3b9
  611.           walton subdirectory:
  612.           From: dwalton@athena.mit.edu (Dave Walton)
  613.           Subject: Inter Process Communication stuff
  614.           
  615.    Q5.4: Can I do heavy - duty data processing with gnuplot?
  616.           Gnuplot alone is not suited very well for this. One thing you
  617.           might try is fudgit, an interactive multi-purpose fitting
  618.           program written by Martin-D. Lacasse
  619.           (isaac@frodo.physics.mcgill.ca). It can use gnuplot as its
  620.           graphics back end and is available from ftp.physics.mcgill.ca
  621.           in /pub/Fudgit/fudgit_2.33.tar.Z [132.206.9.13], and from the
  622.           main Linux server, tsx-11.mit.edu [18.172.1.2] and its numerous
  623.           mirrors around the world as
  624.           /pub/linux/sources/usr.bin/fudgit-2.33.tar.z. Versions are
  625.           available for AIX, Data General, HP-UX, IRIX 4, Linux, NeXT,
  626.           Sun3, Sun4, Ultrix, OS/2 and MS-DOS. The MS-DOS version is
  627.           available on simtel20 mirrors (simtel20 itself has closed down)
  628.           in the "math" subdirectory as fudg_231.zip.
  629.           
  630.           Carsten Grammes has written a fitting program which goes
  631.           together with gnuplot; it is called gnufit and is available
  632.           from the official gnuplot sites, as the files gnufit12.info,
  633.           gnufit12.tar.gz (source) and gft12dos.zip (MS-DOS).
  634.           
  635.           Michael Courtney has written a program called lsqrft, which
  636.           uses the Levenberg - Marquardt - Algorithm for fitting data to
  637.           a function. It is avialiable from ftp.cdrom.com as
  638.           /pub/os2/2_x/unix/lsqrft13.zip; sources, which should compile
  639.           on Unix, and executables for MS-DOS and OS/2 2.x are included.
  640.           There is an interface to the OS/2 presentation manager.
  641.           
  642.           You might also want to look at the applications developed by
  643.           the Software Tools Group (STG) at the National Center for
  644.           Supercomputing Applications. Ftp to ftp.ncsa.uiuc.edu
  645.           [141.142.20.50] and get the file README.BROCHURE for more
  646.           information.
  647.           
  648.    Q5.5: I have ported gnuplot to another system, or patched it. What do
  649.           I do?
  650.           If your patch is small, mail it to bug-gnuplot@dartmouth.edu,
  651.           with a thorough description of what the patch is supposed to
  652.           do, which version of gnuplot it is relative to, etc. Please
  653.           don't mail it to the FAQ maintainer.
  654.           
  655.           If your modifications are extensive (such as a port to another
  656.           system), upload your modifications to
  657.           ftp.dartmouth.edu:/pub/dropoff. Please drop a note to
  658.           David.Kotz@dartmouth.edu, the maintainer of the gnuplot
  659.           subdirectory there, plus a note to bug-gnuplot@dartmouth.edu.
  660.           
  661.    
  662.      _________________________________________________________________
  663.    
  664.   SECTION 6: MAKING LIFE EASIER
  665.   
  666.     Q6.1: How do I plot two functions in non - overlapping regions?
  667.           Use a parametric plot. An example:
  668.           
  669.  
  670.         set parametric
  671.         a=1
  672.         b=3
  673.         c=2
  674.         d=4
  675.         x1(t) = a+(b-a)*t
  676.         x2(t) = c+(d-c)*t
  677.         f1(x) = sin(x)
  678.         f2(x) = x**2/8
  679.         plot [t=0:1] x1(t),f1(x1(t)) title "f1", x2(t), f2(x2(t)) title "f2"
  680.  
  681.    Q6.2: How do I run my data through a filter before plotting?
  682.           If your system supports the popen() - function, as Unix does,
  683.           you should be able to run the output through another process
  684.           such as a short awk program (use the "help plot datafile"
  685.           command for an example). Unfortunately, in 3.2, there is a
  686.           rather short limitation on the maximum argument length, so your
  687.           command line may be truncated (usually, this will mean that awk
  688.           cannot find the filename). Also, you may need to escape the $ -
  689.           characters in your awk programs.
  690.           
  691.           As of version 3.4, gnuplot includes the thru - keyword for the
  692.           plot command for running data files through a gnuplot - defined
  693.           function.
  694.           
  695.           You can also get divhack.trm from
  696.           sotona.phys.soton.ac.uk[152.78.192.42] via anonymous ftp. It
  697.           allows expressions of the kind
  698.           
  699.  
  700.         gnuplot> plot "datafile" using A:B:C
  701.  
  702.    where A,B,C,... are now either a column number, as usual, or an
  703.           arbitrary expression enclosed in ()'s, and using $1,$2,etc to
  704.           access the data columns.
  705.           
  706.    Q6.3: How do I make it easier to use gnuplot with LaTeX?
  707.           There is a set of LaTeX macros and shell scripts that are meant
  708.           to make your life easier when using gnuplot with LaTeX. This
  709.           package can be found on ftp.dartmouth.edu [129.170.16.54] in
  710.           pub/gnuplot/latex.shar, by David Kotz. For example, the program
  711.           "plotskel" can turn a gnuplot-output file plot.tex into a
  712.           skeleton file skel.tex, that has the same size as the original
  713.           plot but contains no graph. With the right macros, the skeleton
  714.           can be used for preliminary LaTeX passes, reserving the full
  715.           graph for later passes, saving tremendous amounts of time.
  716.           
  717.    Q6.4: How do I save and restore my settings?
  718.           Use the "save" and "load" commands for this; see "help save"
  719.           and "help load" for details.
  720.           
  721.    Q6.5: How do I plot lines (not grids) using splot?
  722.           If the data in a data file for splot is arranged in such a way
  723.           that each one has the same number of data points (using blank
  724.           lines as delimiters, as usual), splot will plot the data with a
  725.           grid. If you want to plot just lines, use a different number of
  726.           data entries (you can do this by doubling the last data point,
  727.           for example). Don't forget to set parametric mode, of course.
  728.           
  729.    Q6.6: How do I plot a function f(x,y) which is bounded by other
  730.           functions in the x-y plain?
  731.           An example:
  732.           
  733.  
  734.         f(x,y) = x**2 + y **2
  735.         x(u) = 3*u
  736.         yu(x) = x**2
  737.         yl(x) = -x**2
  738.         set parametric
  739.         set cont
  740.         splot [0:1] [0:1] u,yl(x(u))+(yu(x(u)) - yl(x(u)))*v,\
  741.         f(x(u), (yu(x(u)) - yl(x(u)))*v)
  742.  
  743.    Q6.7: How do I get rid of <feature in a plot>?
  744.           Usually, there is a set command to do this; do a
  745.           
  746.  
  747.         gnuplot> ?set no
  748.  
  749.    for a short overview.
  750.           
  751.    
  752.      _________________________________________________________________
  753.    
  754.   SECTION 7: KNOWN PROBLEMS
  755.   
  756.     Q7.1: Gnuplot is not plotting any points under X11! How come?
  757.           Very probably, you still are using an old version of
  758.           gnuplot_x11. Remove that, then do a full installation.
  759.           
  760.           On VMS, you need to make several symbols:
  761.           
  762.  
  763.         $ gnuplot_x11 :== $disk:[directory]gnuplot_x11
  764.         $ gnuplot :== $disk:[directory]gnuplot.exe
  765.         $ def/job GNUPLOT$HELP disk:[directory]gnuplot.hlb
  766.  
  767.    Then run gnuplot from your command line, and use
  768.           
  769.  
  770.         gnuplot> set term x11
  771.  
  772.    Q7.2: My isoline data generated by a Fortran program is not handled
  773.           correctly. What can I do?
  774.           One known cause for this is the use of list - directed output
  775.           (as in WRITE(10,*) for generating blank lines. Fortran uses ASA
  776.           carriage control characters, and for list - directed output
  777.           this results in a space being output before the newline.
  778.           Gnuplot does not like this. The solution is to generate blank
  779.           lines using formatted output, as in WRITE(10,'()'). If you use
  780.           carriage return files in VMS Fortran, you may have to open the
  781.           file with OPEN(...,CARRIAGECONTROL='DTST') or convert it using
  782.           the DECUS utility ATTRIB.EXE:
  783.           
  784.  
  785.         VMS> ATTRIB/RATTRIB=IMPDTED FOR010.DAT
  786.  
  787.    Q7.3: Why does gnuplot ignore my very small numbers?
  788.           Gnuplot treats all numbers less than 1e-08 as zero, by default.
  789.           Thus, if you are trying to plot a collection of very small
  790.           numbers, they may be plotted as zero. Worse, if you're plotting
  791.           on a log scale, they will be off scale. Or, if the whole set of
  792.           numbers is "zero", your range may be considered empty:
  793.           
  794.  
  795.         gnuplot> plot 'test1'
  796.         Warning: empty y range [4.047e-19:3e-11], adjusting to [-1:1]
  797.         gnuplot> set yrange [4e-19:3e-11]
  798.         gnuplot> plot 'test1'
  799.                      ^
  800.          y range is less than `zero`
  801.  
  802.    The solution is to change gnuplot's idea of "zero":
  803.           
  804.  
  805.         gnuplot> set zero 1e-20
  806.  
  807.    For more information,
  808.           
  809.  
  810.         gnuplot> help set zero
  811.  
  812.    Q7.4: Gnuplot is plotting nothing when run via gnuplot <filename>!
  813.           What can I do?
  814.           Put a pause -1 after the plot command in the file.
  815.           
  816.    Q7.5: My formulas are giving me nonsense results! What's going on?
  817.           Gnuplot does integer, and not floating point, arithmetic on
  818.           integer expressions. For example, the expression 1/3 evaluates
  819.           to zero. If you want floating point expressions, supply
  820.           trailing dots for your floating point numbers. Example:
  821.           
  822.  
  823.         gnuplot> print 1/3
  824.                 0
  825.         gnuplot> print 1./3.
  826.                 0.333333
  827.  
  828.    This way of evaluating integer expressions is shared by both C and
  829.           Fortran.
  830.           
  831.    
  832.      _________________________________________________________________
  833.    
  834.   SECTION 8: CREDITS
  835.   
  836.    This list was initially compiled by John Fletcher with contributions
  837.    from Russell Lang, John Campbell, David Kotz, Rob Cunningham, Daniel
  838.    Lewart and Alex Woo. Reworked by Thomas Koenig from a draft by Alex
  839.    Woo, with corrections and additions from Alex Woo, John Campbell,
  840.    Russell Lang, David Kotz and many corrections from Daniel Lewart; Axel
  841.    Eble and Jutta Zimmermann helped with the conversion to HTML.
  842.    
  843.    
  844.      _________________________________________________________________
  845.    
  846.     Thomas Koenig, ig25@rz.uni-karlsruhe.de, 1994-03-28
  847. -- 
  848. Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet,
  849. The joy of engineering is to find a straight line on a double
  850. logarithmic diagram.
  851.